
const reducer = (state = {
    // 全局状态
    bannerList: [],
    proList: []
}, {type, payload})=>{

    switch (type) {
        case 'change_banner_list':
            return {...state, bannerList: payload}
        case 'change_pro_list':
            return {...state, proList: payload}
        default:
            return state
    }
}

export default reducer